package com.xinghen.scheduler.listener;

import com.xinghen.scheduler.service.ListenerService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xinghen
 * @ClassName: JobDetailListener
 * @Package: com.xinghen.scheduler.listener
 * @Description 作业监听器
 * @create 2017-12-08 17:30
 */
@Slf4j
public class JobDetailListener implements JobListener {

    @Autowired
    private ListenerService listenerService;

    @Override
    public String getName() {
        return null;
    }

    @Override
    public void jobToBeExecuted(JobExecutionContext jobExecutionContext) {

    }

    @Override
    public void jobExecutionVetoed(JobExecutionContext jobExecutionContext) {

    }

    @Override
    public void jobWasExecuted(JobExecutionContext jobExecutionContext, JobExecutionException e) {

    }
}
